﻿namespace Pisces
{
	/**
	 * ui的生命周期接口
     * created by wangqiang
    **/
	public interface InterfaceUILiftcycle
	{
		/// <summary>
		/// UI被创建时调用
		/// </summary>
		public void onInit();

		/// <summary>
		/// UI加载完资源后调用
		/// </summary>
		public void onLoaded();

		/// <summary>
		/// UI可以开始工作时调用
		/// </summary>
		public void onAwake();

		/// <summary>
		/// UI完成初始化开始走显示逻辑时调用
		/// </summary>
		public void onShow();

		/// <summary>
		/// UI隐藏时调用
		/// </summary>
		public void onHide();

		/// <summary>
		/// 更新调用
		/// </summary>
		/// <param name="deltaTime"></param>
		public void onUpdate(float deltaTime);

		/// <summary>
		/// 销毁时调用
		/// </summary>
		public void onDestroy();

	}
	
}